 <!DOCTYPE html>
 <html>
     <head>
         <Link Rel="SHORTCUT ICON" href="http://www.jd.com/favicon.ico">
         <title>{{$conf -> wz_title}} | {{$title}}</title>
         <meta charset="utf-8" />
         <link href="{{asset('/home/css/index.css')}}" rel="stylesheet"/>
         <link href="{{asset('/home/css/public.css')}}" rel="stylesheet"/>
         <script src="{{asset('/home/js/jquery.js')}}"></script>
         <script src="{{asset('/home/js/plug.js')}}"></script>
         <script src="{{asset('/home/js/index.js')}}"></script>
     </head>
     <body>
        <!--顶部快捷方式 START-->
        <div id="shortcut">
            <div class="w">
                <ul class="sendto">
                    <li>
                        <div class="send-target">
                            送至：<span>北京</span>
                            <i><span>◇</span></i>
                        </div>
                        <!--城市列表 START-->
                        <div class="send-list">
                            <div></div>
                            <ul class='sendcity'>
                                <li><a href="#none" data-id="01">北京</a></li> 
                                <li><a href="#none" data-id="02">上海</a></li> 
                                <li><a href="#none" data-id="03">天津</a></li> 
                                <li><a href="#none" data-id="04">重庆</a></li> 
                                <li><a href="#none" data-id="05">河北</a></li> 
                                <li><a href="#none" data-id="06">山西</a></li> 
                                <li><a href="#none" data-id="07">河南</a></li> 
                                <li><a href="#none" data-id="08">辽宁</a></li> 
                                <li><a href="#none" data-id="09">吉林</a></li> 
                                <li><a href="#none" data-id="10">江苏</a></li> 
                                <li><a href="#none" data-id="11">山东</a></li> 
                                <li><a href="#none" data-id="12">安徽</a></li> 
                                <li><a href="#none" data-id="13">浙江</a></li> 
                                <li><a href="#none" data-id="14">福建</a></li> 
                                <li><a href="#none" data-id="15">湖北</a></li> 
                                <li><a href="#none" data-id="16">湖南</a></li> 
                                <li><a href="#none" data-id="17">广东</a></li> 
                                <li><a href="#none" data-id="18">广西</a></li> 
                                <li><a href="#none" data-id="19">江西</a></li> 
                                <li><a href="#none" data-id="20">四川</a></li> 
                                <li><a href="#none" data-id="21">海南</a></li> 
                                <li><a href="#none" data-id="22">贵州</a></li> 
                                <li><a href="#none" data-id="23">云南</a></li> 
                                <li><a href="#none" data-id="24">西藏</a></li> 
                                <li><a href="#none" data-id="25">陕西</a></li> 
                                <li><a href="#none" data-id="26">甘肃</a></li> 
                                <li><a href="#none" data-id="27">青海</a></li> 
                                <li><a href="#none" data-id="28">宁夏</a></li> 
                                <li><a href="#none" data-id="29">新疆</a></li> 
                                <li><a href="#none" data-id="30">台湾</a></li> 
                                <li><a href="#none" data-id="31">香港</a></li> 
                                <li><a href="#none" data-id="32">澳门</a></li> 
                                <li><a href="#none" data-id="33">钓鱼岛</a></li>
                                <li><a href="#none" data-id="34">黑龙江</a></li> 
                                <li><a href="#none" data-id="35">内蒙古</a></li>  
                                <li><a href="#none" data-id="36">海外</a></li> 
                            </ul>
                        </div><!--城市列表 END-->
                    </li>
                </ul>
                <!--快捷菜单 START-->
                <ul class="short-menu" style="float: right">
                    <li>
                        
                        @if(!empty($user -> username))
                        <a href="/user">{{$user -> username}}</a>
                        <a href="/login/logout">退出</a>
                        @else
                        <a href="/login">登录</a>
                        <a href="/home/reg/add">快速注册</a>
                        @endif
                    </li>
                    <li class="spacer"></li>
                    <li>
                        @if(session('user'))
                        <a href="/dingdan">我的订单</a>
                        @endif
                        @if(!session('user'))
                        <a href="/login">我的订单</a>
                        @endif
                    </li>
                    <li class="spacer"></li>
                    @if(!session('user'))
                    <li>
                        <a href="/login" class="short-user">我的京东</a>
                        <div class="shortuser">
                            <div class="u-spacer"></div>
                            <div class="shortinfo">
                                <div class="u-pic">
                                @if(!empty($user -> pic))
                                    <a href="/user"><img src="{{$user -> pic}}" alt="" /></a>
                                @else
                                    <a href="/login"><img src="{{asset('/uploads/user/1.jpg')}}" alt="" /></a>
                                @endif
                                </div>
                                <div class="u-name">
                                @if(!empty($user -> username))
                                <a href="/user">{{$user -> username}}</a>
                                @else
                                <a href="/login">您好,请先登录!</a>
                                @endif
                                </div>
                                <div class="u-ext">
                                    <a href="/cart">购物车</a> | <a href="#">消息 <span style="color:red">1</span></a>
                                </div>
                            </div>
                        </div>
                    </li>
                    @endif
                    @if(session('user'))
                    <li>
                        <a href="/user" class="short-user">我的京东</a>
                        <div class="shortuser">
                            <div class="u-spacer"></div>
                            <div class="shortinfo">
                                <div class="u-pic">
                                @if(!empty($user -> pic))
                                    <a href="/user"><img src="{{$user -> pic}}" alt="" /></a>
                                @else
                                    <a href="/login"><img src="{{asset('/uploads/user/1.jpg')}}" alt="" /></a>
                                @endif
                                </div>
                                <div class="u-name">
                                @if(!empty($user -> username))
                                <a href="/user">{{$user -> username}}</a>
                                @else
                                <a href="/login">您好,请先登录!</a>
                                @endif
                                </div>
                                <div class="u-ext">
                                    <a href="/cart">购物车</a> | <a href="#">消息 <span style="color:red">1</span></a>
                                </div>
                            </div>
                        </div>
                    </li>
                    @endif
                    <li class="spacer"></li>
                    <li>
                        <a href="javascript:;">手机京东</a>
                    </li>
                    <li class="spacer"></li>
                    <li>
                        <a href="javascript:;">关注京东</a>
                    </li>
                    <li class="spacer"></li>
                    <li>
                        <a href="javascript:;">关注会员</a>
                    </li>
                    <li class="spacer"></li>
                    <li>
                        <a href="javascript:;">客户服务</a>
                    </li>
                </ul><!--快捷菜单 END-->
            </div>
        </div><!--顶部快捷方式 END-->

        <!--顶部BANNER START-->
        <div id="top-banner">
            <div class="w">
                <a><img src="{{asset('/uploads/images/top-banner.jpg')}}" /></a>
            </div>
        </div><!--顶部BANNER END-->
        <!--搜索块 START-->
        <div id="search" class="w">
            <!--LOGO START-->
            <div class="shop-logo">
                <a href="/"><img src="{{asset('/home/images/shop-logo.png')}}" /></a>
            </div><!--LOGO END-->
            <!--搜索框 START-->
            <div class="shop-search">
                <div class="search-form">
                    <form action="/cshow" method="post">
                        {{csrf_field() }}
                        <input type="text" name="keywords" value="{{$request['keywords'] or ''}}" />
                        <button type="submit">搜索</button>
                    </form>
                </div>
            </div><!--搜索框 END-->
            <!--购物车 START-->
            <div class="shop-cart">
                <div class="sc-icons">
                    <i class="ci-left"></i>
                    <i class="ci-right">></i>
                    <a href="/cart" target="_blank">我的购物车</a>
                </div>
                    <!-- <img src="/home/images/11.png" alt=""> -->
                {{--<div class="sc-history">--}}
                    {{--<div class="sc-spacer"></div>--}}
                    {{--<div class="sc-content">--}}
                        {{--<div class="sc-title">--}}
                            {{--<h4>最新加入的商品</h4>--}}
                        {{--</div>--}}
                        {{--<div class="sc-list">--}}
                            {{--{:W("Car/index")}--}}
                        {{--</div>--}}
                        {{--<div class="sc-bar">--}}
                            {{--<div class="sc-bar-total">--}}
                                {{--共 <b>--}}
                                {{--@if(!empty($user))--}}
                                    {{--{{count($cart)}}--}}
                                {{--@else--}}
                                    {{--0--}}
                                {{--@endif--}}
                                {{--</b> 件商品 共计 <strong>￥ {:W('Car/car_total')}</strong>--}}
                            {{--</div>--}}
                            {{--<a href="__APP__/Car/index">去购物车</a>--}}
                        {{--</div>--}}
                    {{--</div>--}}
                {{--</div>--}}
                
            </div><!--购物车 END-->
             <!--热搜关键词 START-->
            <div class="shop-hotwords">
                <a href="/cshow/太阳镜">太阳镜</a>
                <a href="/cshow/短裤">短裤</a>
                <a href="/cshow/T恤">T恤</a>
                <a href="/cshow/男装">男装</a>
                <a href="/cshow/吊带">吊带</a>
                <a href="/cshow/女鞋">女鞋</a>
                <a href="/cshow/精品">精品</a>
                <a href="/cshow/亲子">亲子</a>
                <a href="/cshow/凉鞋">凉鞋</a>
            </div><!--热搜关键词 END-->
        </div><!--搜索块 END-->
        <!--导航 START-->
        <div id="nav">
            <div class="w">
                <div id="categorys">
                    <div class="dt">
                        <a href="#">全部商品分类</a>
                    </div>
                    <!--{begin 主类-->
                    <div class="dd">
                        @foreach($type as $k => $v)
                            <div class="dd-list">
                                <div class="dd-items">
                                    <h3><a target="_blank" href="/cshow/{{$v -> id}}">{{$v -> catename}}</a>
                                    @if(count($typechilds[$k])>=2)
                                        @for($i=0;$i < 2;$i++)
                                            <a target="_blank" href="/cshow/{{$typechilds[$k][$i] -> id}}">{{$typechilds[$k][$i] -> catename}}</a>
                                        @endfor
                                    @endif
                                    </h3><i>></i>
                                </div>
                                <!--{begin 子类模块-->
                                <div class="dd-content">
                                    <ul class="pop-list">
                                    @foreach($typechilds[$k] as $cate)
                                            <li><a target="_blank" href="/cshow/{{$cate -> id}}">{{$cate -> catename}}</a></li>
                                    @endforeach
                                    </ul>
                                    <ul class="brand-list">
                                    @foreach($brands as $brand)
                                        @if(($brand -> cate_id) == ($v -> id))
                                            <li><a style="display:none" href="__APP__/List/index/brandid/{$brands[$type['id']]['id'][$i]}"></a><a href="/bshow/{{$brand -> brandname}}"><img width="70" src="{{$brand -> brandlogo}}" alt="" /></a></li>
                                        @endif
                                    @endforeach
                                    </ul>
                                </div><!--}end 子类模块-->
                            </div>
                        @endforeach
                    </div><!--}end 主类-->
                </div>
                <div id="navitems">
                    <ul>
                        <volist name="typeIndex" id="type">                           
                                @foreach($type as $val)
                                    <li><a href="/cshow/{{$val -> id}}">{{$val -> catename}}</a></li>
                                @endforeach
                        </volist>
                    </ul>
                </div>
                <div id="treasure">
                    <a href="javascript:;"><img src="{{asset('/uploads/images/nav-treasure.jpg')}}" alt="" /></a>
                </div>
            </div>
        </div><!--导航 END-->
        <!--轮播 START-->
        <div id="focus">
            <div class="slider">
                <ul class="slider-main">
                    <li class="picslist">
                        <div class="pics">
                             <a target="_blank" href="#"><img src="{{asset('/uploads/posts/s_55ae60e37db08.jpg')}}" alt="" /></a>
                        </div>
                    </li>
                    <li class="picslist">
                        <div class="pics">
                             <a target="_blank" href="#"><img src="{{asset('/uploads/posts/s_55ae612cdf22e.jpg')}}" alt="" /></a>
                        </div>
                    </li>
                    <li class="picslist">
                        <div class="pics">
                             <a target="_blank" href="#"><img src="{{asset('/uploads/posts/s_55ae615fd0e67.jpg')}}" alt="" /></a>
                        </div>
                    </li>
                    <li class="picslist">
                        <div class="pics">
                             <a target="_blank" href="#"><img src="{{asset('/uploads/posts/s_55ae6172b18d2.jpg')}}" alt="" /></a>
                        </div>
                    </li>
                    <li class="picslist">
                        <div class="pics">
                             <a target="_blank" href="#"><img src="{{asset('/uploads/posts/s_55ae61845e6f5.jpg')}}" alt="" /></a>
                        </div>
                    </li>
                    <li class="picslist">
                        <div class="pics">
                             <a target="_blank" href="#"><img src="{{asset('/uploads/posts/s_55b6e89d0a6c9.jpg')}}" alt="" /></a>
                        </div>
                    </li>                   
                </ul>
                <div class="slider-extra">
                    <ul>
                        <li class="slider-selected">1</li>
                        <li>2</li>
                        <li>3</li>
                        <li>4</li>
                        <li>5</li>
                        <li>6</li>
                    </ul>
                </div>
                <div class="slider-page" style="display: none">
                    <a class="slider-prev" href="javascript:void(0)"><</a>
                    <a class="slider-next" href="javascript:void(0)">></a>
                </div>
            </div>
        </div><!--轮播 END-->
        <!--公告拦 START-->
        <div id="focus-extra" class="w">
            <div id="news">
                <div class="nt">
                    <h2>京东快报</h2>
                    <!-- <a href="#">更多 ></a> -->
                </div>
                <div class="nc">
                    <ul>
                        @foreach($article as $title)
                            <li>
                                <a href="#"><span>
                                        [公告] {{$title -> title}}
                                    </span>
                                </a>
                            </li>
                        @endforeach
                    </ul>
                </div>
            </div>
        </div><!--公告拦 END-->
        <!--特色推荐 START-->
        <div class="w">
            <div id="todays">
                <div class="tm">
                </div>
                <div class="tc">
                    <ul>
                        <volist name="goods" id="good">
                            <eq name="good.isbest" value="2">
                            @foreach($tjgoods as $v)
                                <li>
                                <div>
                                <a target="_blank" href="/detail/{{$v -> id}}"><img width="151" src="{{$v -> goods_pic}}" alt="" /></a>
                                </div>
                                </li>
                            @endforeach 
                            </eq>
                        </volist>
                    </ul>
                    <div class="slider-page" style="display: none">
                        <a class="slider-prev" href="javascript:void(0)"><</a>
                        <a class="slider-next" href="javascript:void(0)">></a>
                    </div>
                </div>
            </div>
            <div id="guess-like">
                <div class="guessyou">
                    <div class="gt">
                        <h2>猜你喜欢</h2>
                        <a class="gt-more" href="javascript:;">换一批</a>
                    </div>
                    <div class="gc">
                        <div class="gc-spacer">
                            <i></i>
                        </div>
                        <ul class="gc-list">
                            <volist name="goodsHot" id="v">
                            @foreach($lgoods as $detail)
                                <li>
                                    <div class="g-img">
                                        <a target="_blank" href="/detail/{{$detail -> id}}"><img width="130" height="140" src="{{$detail -> goods_pic}}" alt="" /></a>
                                    </div>
                                    <div class="g-info">
                                        <div class="g-name"><a title="" target="_blank" href="/detail/{{$detail -> id}}">{{$detail -> goods_name}}</a></div>
                                        <div class="g-price">
                                            <i>￥</i>{{$detail -> price}}
                                        </div>
                                    </div>
                                </li>
                            @endforeach
                            </volist>
                        </ul>
                    </div>
                </div>
            </div>
            <div id="special-buy">
                <h2>京东特色购</h2>
                <div class="sp-count">
                    <div class="sp-left">
                        @foreach($brandgoods as $vgoods)
                        <a target="_blank" href="/detail/{{$vgoods -> id}}">
                            <p class="sp-icons">
                                <span class="spicon sp-icon-left"></span>
                                <span>今日最大牌</span>
                                <span class="spicon sp-icon-right"></span>
                            </p>
                            <p class="sp-title">{{$vgoods -> goods_name}}</p>
                            <img width="200" src="{{$vgoods -> goods_pic}}" alt="" />
                        </a>
                        @endforeach
                    </div>
                </div>
            </div>
        </div><!--特色推荐 END-->
        <!--楼层 START-->
        <div id="content">
            <div class="w">
                <!--广告banner START-->
                <div class="content-banner">
                    <a href="#"><img src="{{asset('/uploads/images/content-banner-1.jpg')}}" alt="" /></a>
                    <a href="#"><img src="{{asset('/uploads/images/content-banner-2.jpg')}}" alt="" /></a>
                    <a href="#"><img src="{{asset('/uploads/images/content-banner-3.jpg')}}" alt="" /></a>
                </div><!--广告banner END-->
                <!--1楼 START-->
               
                
                <div class="today-special">
                    <div class="tst">
                        <h2>今日抄底</h2>
                    </div>
                    <div class="tsc">
                        <ul>
                            
                            <volist name="goods" id="good">
                                <eq name="good['ishot']" value="2">
                                @foreach($low as $k => $lowval)
                                    @if($k < 12)
                                    <li>
                                        <div class="p-img">
                                            <a target="_blank" href="/detail/{{$lowval -> id}}"><img width="100" src="{{$lowval -> goods_pic}}" alt="" /></a>
                                        </div>
                                        <div class="p-info">
                                            <div class="p-name">
                                                <a target="_blank"  width="100" height="100" title="" href="/detail/{{$lowval -> id}}">{{$lowval -> goods_name}}</a>
                                            </div>
                                            <div class="p-price">
                                                <span>￥{{$lowval -> price}}</span>
                                            </div>
                                        </div>
                                    </li>
                                    @endif
                                @endforeach
                               </eq>
                           </volist>
                           
                        </ul>
                    </div>
                </div>
            </div>
        </div><!--楼层 END-->
        <!--footer START-->
        <div id="footer">
            <div class="slogen">
                <div class="w">
                    <i class="item1"></i>
                    <i class="item2"></i>
                    <i class="item3"></i>
                    <i class="item4"></i>
                </div>
            </div>
            <div class="w">
                <div class="otherinfo">
                    <div class="links">
                        @foreach($link as $lk) 
                            <a href="{{$lk -> url}}" target="_blank"><img src="{{$lk -> logo}}" width="40" height="32">{{$lk -> linkname}}</a><span>|</span>
                        @endforeach
                    </div>
                    <div class="copyright">ICP经营许可证：<span>京ICP证XXXXXX号</span>
                    </div>
                </div>
            </div>
        </div><!--footer END-->
        <script type="text/javascript">
            $('.otherinfo .links span').last().remove();
        </script>
        
        <!--电梯 START--/>
        <div id="global-toolbar">
        
        </div><!--电梯 END--/>
        </!--个人快捷栏 START--/>
        <div id="elevator">
        
        </div><!--个人快捷栏 END-->
        
    </body>
 </html>
